package com.syedu.day10.example1;

import static com.syedu.day10.example1.SayHelloFactory.*;

/**
 * description：
 * @author Administrator
 * @date 2022/3/21 14:34
 */
public class Client {
    public static void main(String[] args) {
        SayHelloService service = new SayHelloService();
        SayHello sayHello = getInstance(SAY_BY_ZH);
        String result = service.hi(sayHello,"Java");
        System.out.println(result);
    }
}